//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing.Diagram
{
    class PresentationOf: IOfficeXmlSerializable
    {
        IteratorAttributes IteratorAttributes = new IteratorAttributes();
        private OfficeArtExtensionList _extLst;

        public void ReadXml(ReadContext context)
        {
            using (var c = context.Read("presOf"))
            {
                IteratorAttributes.ReadXml(c);
                _extLst = c.ReadOptionalElement<OfficeArtExtensionList>("extLst");
            }

        }

        public void WriteXml(WriteContext context)
        {
            using (var c = context.Write("presOf"))
            {
                IteratorAttributes.WriteXml(c);
                c.WriteOptionalElement(_extLst);
            }
        }
    }
}